<%--
  Created by IntelliJ IDEA.
  User: Lenovo
  Date: 2025/9/17
  Time: 17:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="Text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    String str="12";
    int number=Integer.parseInt(str);

%>
该数字的平方为：<%=number*number%><hr>
<form action="formP2.jsp" method="post">
    <input type="hidden" name="number" value="<%=number%>">
    <input type="submit" value="提交">
</form>
</body>
</html>
